package com.hkts.naturalgas.organizational.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hkts.naturalgas.organizational.entity.HontDepartment;
import com.hkts.naturalgas.organizational.orgVo.DepartmentsAndIdentityVo;
import com.hkts.naturalgas.organizational.orgVo.HontDepartmentAndUserVo;
import com.hkts.naturalgas.organizational.orgVo.PossessDepartVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author yck
 * @since 2020-12-23
 */
@Mapper
public interface HontDepartmentMapper extends BaseMapper<HontDepartment> {
    List<PossessDepartVo> getDepartmentsByLoginUser(List<String> list);

    List<String> getDepartmentIdByLoginUser(List<String> list);

    Boolean getIsParent(String departmentId);

    List<HontDepartmentAndUserVo> getDepartmentsAndUsersByLoginUser(DepartmentsAndIdentityVo vo);
}
